package com.xinlong.service;

import com.xinlong.entity.Permission;
import com.xinlong.entity.Role;

import java.util.List;

public interface IroleService {

    List<Role> findall();

    void save(Role role);

    List<Permission> findRoleByIdAndAllPermission(String id);

    Role findbyid(String id);

    void addRoleTopermissin(String roleid, String[] ids);

    List<Permission> findRoleByIdAndAllPermission2();

    void delRoleTopermissin(Integer id);
}
